package com.tron.sync.syncwfinfoindex;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "IBPS-OAUTHSERVER-PROVIDER")
public interface AuthClient {

    @PostMapping("/user/context")
    String getUserInfo(@RequestParam("username") String username, @RequestHeader("X-Authorization-access_token")String token);
}
